package com.atwulidun.yygh.hosp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

@SpringBootApplication
// 为了能扫描到common->service_util->com.atwulidun.yygh.common.config
@ComponentScan(basePackages = "com.atwulidun")
// 注册到nacos中
@EnableDiscoveryClient
// 开启远程调用
// 这里引入了service_cmn_client模块，加上basePackages = "com.atwulidun"
// 是为了能扫描到service_cmn_client模块中的com.atwulidun.yygh.cmn.client.DictFeignClient
@EnableFeignClients(basePackages = "com.atwulidun")
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
